package cn.wolfcode.crm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.QueryObject;

public interface EmployeeMapper {
	void insert(Employee entity);
	void update(Employee entity);
	void delete(Long id);
	Employee selectById(Long id);
	List<Employee> selectAll();
	
	Employee selectRoleByEmployeeId(Long id);
	
	/**
	 * 
	 * @param keyword
	 * @return
	 */
	List<Employee> selectForList(QueryObject qo);
	
	List<Employee> querySellersForNotId(@Param("id") Long id);
}
